#ifndef _MOUSE_
#define _MOUSE_

/*
 * Mouse.h
 *
 * Header crap fer da mouse.
 */
#define TIMERBIOS 0x1A


#define JOYBIOS 0x15
#define J_STATUS 0x84
#define J_MOVE 0
#define J_BTNS 1

#define MOUSEBIOS 0x33
#define M_RESET 0
#define M_SHOW 1
#define M_HIDE 2
#define M_STATUS 3
#define M_MOVE 4
#define M_HRANGE 7
#define M_VRANGE 8
#define M_DELTA 0xB
#define M_GETTYPE 0x24

#define M_PS2TYPE  0x0400

#define MT_UNK   0x00
#define MT_PS2   0x02

typedef struct
{
	short		button;
	short		x;
	short		y;
	short		dh; 		/* Delta-Horizontal (in mickeys: 1/200 inch) */
	short		dv;		/* Delta-Vertical */
} mousestate, *mousestateptr;

extern void getJoyPos(void);
extern void moveMouse(short x,short y);
//extern void mouseStatus(mousestateptr m);
extern time_t mouseStatus(mousestateptr m);
extern void reset_clock0();
#endif
